package com.ocom.webapi.feign;

import com.ocom.common.constant.WxServiceUrl;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "xcxapi")
public interface XcxFeign {

    @PostMapping(WxServiceUrl.Url_getXcxAccessToken)
    public Result getXcxAccessToken(@RequestParam("comId") Long comId, @RequestParam("appid")String appid, @RequestParam("secret")String secret);
}
